/*
** main.c for  in /home/faye_m//zappy
** 
** Made by mouhamed faye
** Login   <faye_m@epitech.net>
** 
** Started on  Tue Jun 14 17:35:08 2011 mouhamed faye
** Last update Fri Jul  1 13:58:56 2011 mouhamed faye
*/
#include "server.h"
#include "main.h"

int	main(int ac ,	char **av)
{
  if (ac > 1)
    {
      Vars_Packages		*var;
      var = malloc (sizeof(*var));
      if (var == NULL)
	return -1;
      zappy_server(checkport(atoi(av[1])), av, var);
    }
  else
    zappy_usage();
  return (0);
}
